<html>
<head>
<meta charset="utf-8">
<title>無標題文件</title>
<style>
 body { font-family: 微軟正黑體, verdana, Times New Roman, 新細明體; }
 h3{font-size:18;}
 
.middle {
	background-color: #09F;
	background-position: center center;
	text-align: center;
	color:#FFF;
	padding: 10px;
	-webkit-transition: all;
	-moz-transition: all;
	-ms-transition: all;
	-o-transition: all;
	transition: all;
}
.middle:hover{
	text-align:left;
}
.mainContent{
	background:#FFF;
	padding-left:20px;
	padding-right:20px;
	
}
</style>
<link href="jQueryAssets/jquery-ui-1.10.3.custom.css" rel="stylesheet" type="text/css">
<link href="jQueryAssets/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" type="text/css">
<script src="jQueryAssets/jquery-1.9.1.js" type="text/javascript"></script>
<script src="jQueryAssets/jquery-ui-1.10.3.custom.js" type="text/javascript"></script>
<script src="jQueryAssets/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
 <script src="js/fb.js" type="text/javascript"></script>
 <script src="js/content.js" type="text/javascript"></script>
 <script src="js/createevent.js" type="text/javascript"></script>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
  <script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
  <link href="jquery-ui-timepicker-addon.css" rel="stylesheet"></link>
<script src="jquery-ui-timepicker-addon.js" type="text/javascript"></script>
<script src="jquery-ui-sliderAccess.js" type="text/javascript"></script>
<script>
  (function( $ ) {
    $.widget( "custom.combobox", {
      _create: function() {
        this.wrapper = $( "<span>" )
          .addClass( "custom-combobox" )
          .insertAfter( this.element );
 
        this.element.hide();
        this._createAutocomplete();
        this._createShowAllButton();
      },
 
      _createAutocomplete: function() {
        var selected = this.element.children( ":selected" ),
          value = selected.val() ? selected.text() : "";
 
        this.input = $( "<input>" )
          .appendTo( this.wrapper )
          .val( value )
          .attr( "title", "" )
          .addClass( "custom-combobox-input ui-widget ui-widget-content ui-state-default ui-corner-left" )
          .autocomplete({
            delay: 0,
            minLength: 0,
            source: $.proxy( this, "_source" )
          })
          .tooltip({
            tooltipClass: "ui-state-highlight"
          });
 
        this._on( this.input, {
          autocompleteselect: function( event, ui ) {
            ui.item.option.selected = true;
            this._trigger( "select", event, {
              item: ui.item.option
            });
          },
 
          autocompletechange: "_removeIfInvalid"
        });
      },
 
      _createShowAllButton: function() {
        var input = this.input,
          wasOpen = false;
 
        $( "<a>" )
          .attr( "tabIndex", -1 )
          .attr( "title", "Show All Items" )
          .tooltip()
          .appendTo( this.wrapper )
          .button({
            icons: {
              primary: "ui-icon-triangle-1-s"
            },
            text: false
          })
          .removeClass( "ui-corner-all" )
          .addClass( "custom-combobox-toggle ui-corner-right" )
          .mousedown(function() {
            wasOpen = input.autocomplete( "widget" ).is( ":visible" );
          })
          .click(function() {
            input.focus();
 
            // Close if already visible
            if ( wasOpen ) {
              return;
            }
 
            // Pass empty string as value to search for, displaying all results
            input.autocomplete( "search", "" );
          });
      },
 
      _source: function( request, response ) {
        var matcher = new RegExp( $.ui.autocomplete.escapeRegex(request.term), "i" );
        response( this.element.children( "option" ).map(function() {
          var text = $( this ).text();
          if ( this.value && ( !request.term || matcher.test(text) ) )
            return {
              label: text,
              value: text,
              option: this
            };
        }) );
      },
 
      _removeIfInvalid: function( event, ui ) {
 
        // Selected an item, nothing to do
        if ( ui.item ) {
          return;
        }
 
        // Search for a match (case-insensitive)
        var value = this.input.val(),
          valueLowerCase = value.toLowerCase(),
          valid = false;
        this.element.children( "option" ).each(function() {
          if ( $( this ).text().toLowerCase() === valueLowerCase ) {
            this.selected = valid = true;
            return false;
          }
        });
 
        // Found a match, nothing to do
        if ( valid ) {
          return;
        }
 
        // Remove invalid value
        this.input
          .val( "" )
          .attr( "title", value + " didn't match any item" )
          .tooltip( "open" );
        this.element.val( "" );
        this._delay(function() {
          this.input.tooltip( "close" ).attr( "title", "" );
        }, 2500 );
        this.input.data( "ui-autocomplete" ).term = "";
      },
 
      _destroy: function() {
        this.wrapper.remove();
        this.element.show();
      }
    });
  })( jQuery );
 
  $(function() {
    $( "#combobox" ).combobox();
    $( "#toggle" ).click(function() {
      $( "#combobox" ).toggle();
    });
  });
  </script>
  <script>
  $(function() {
    $( "#dialog" ).dialog();
  });
  </script>

</head>

<body>
	<div id="dialog" title="Basic dialog">
  <p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>
	 <div id="fb-root"></div>
<h1 class="middle">發布活動消息</h1>
<div class="mainContent">
<hr>
<input type="radio"  name="postby" />共用帳號
<input type="radio"  name="postby"/>我自己的Facebook帳號
<form id="postform" enctype="multipart/form-data" onsubmit="pageCreateEvent()">
  <div id = "Accordion1">
			 <h3>活動內容</h3>
			  <div>
			     
			    <p>
			      活動名稱 
			    <input type="text" name="name">
			    </p>
			    <p>活動網址 
			      <input type="text" name="url"  placeholder="報名網址?">
			    </p>
                <p>活動時間
                    <input type="text" id='datetimepicker1' name='time'>
                </p>   
			    <p>活動地點
                	<input type="text" name="location">
                </p>
                <p>活動介紹
                	<textarea name="description"></textarea>
                </p>
			  </div>
			  <!--
              <h3>活動圖片</h3>
			  <div>
			   <p>選擇圖片
                <input type="file" name="fileField" id="fileField"/>
              </p>
			  </div>
			 -->
			   <h3>標註活動關鍵字</h3>
			    <div>
				   <div class="ui-widget">
					  <select id="combobox">
					    <option value="">Select one...</option>
					    <option value="ActionScript">ActionScript</option>
					    <option value="AppleScript">AppleScript</option>
					    <option value="Asp">Asp</option>
					    <option value="BASIC">BASIC</option>
					    <option value="C">C</option>
					    <option value="C++">C++</option>
					    <option value="Clojure">Clojure</option>
					    <option value="COBOL">COBOL</option>
					    <option value="ColdFusion">ColdFusion</option>
					    <option value="Erlang">Erlang</option>
					    <option value="Fortran">Fortran</option>
					    <option value="Groovy">Groovy</option>
					    <option value="Haskell">Haskell</option>
					    <option value="Java">Java</option>
					    <option value="JavaScript">JavaScript</option>
					    <option value="Lisp">Lisp</option>
					    <option value="Perl">Perl</option>
					    <option value="PHP">PHP</option>
					    <option value="Python">Python</option>
					    <option value="Ruby">Ruby</option>
					    <option value="Scala">Scala</option>
					    <option value="Scheme">Scheme</option>
					  </select>
					  <div id ="addtag">加入標籤</div>
					  <div id="tagresult"  value= "asdf"></div>
					</div>
					
			</div>
	

 		 </div>
	<input type="submit" name="submit" id="submit" value="送出"  onclick="pageCreateEvent(); return false;">
	<input type="reset">
</form>
</div>
<script type="text/javascript">
$(function() {
	var opt={dateFormat: 'yy-mm-dd',
               showSecond: false,
               timeFormat: 'HH:mm',
               hour:12,
               stepMinute:10
               };
    $('#datetimepicker1').datetimepicker(opt);
});
$(function() {
	$( "#Accordion1" ).accordion(); 
});

</script>

</body>

</html>
